﻿@using NewLife.Web;
@using XCode;
@using XCode.Configuration;
@model EntityList<TaskHistory>
    @{
        Layout = "~/Views/Shared/_Ace_Layout.cshtml";

        var task = ViewBag.Task as WorkTask;
    }
    <div class="panel panel-default">
        <div class="panel-body">
            @Html.Partial("_Form_Nav", task)
        </div>
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped table-condensed">
                <thead>
                    <tr>
                        <th class="text-center">源任务</th>
                        <th class="text-center">种类</th>
                        <th class="text-center">旧值</th>
                        <th class="text-center">新值</th>
                        <th class="text-center">IP地址</th>
                        <th class="text-center">物理地址</th>
                        <th class="text-center">创建人</th>
                        <th class="text-center">创建时间</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var entity in Model)
                    {
                        <tr>
                            <td>
                                @if (entity.SrcTaskName != null)
                                {
                                    @Html.ActionLink(entity.SrcTaskName, "Edit", "Task", new { ID = entity.SrcTaskID }, new { target = "_blank" })
                                }
                            </td>
                            <td class="text-center">@entity.Kind</td>
                            <td>@entity.SrcValue</td>
                            <td>@entity.NewValue</td>
                            <td>@entity.IP</td>
                            <td>@entity.Address</td>
                            <td>@entity.CreateUserName</td>
                            <td>@entity.CreateTime.ToFullString()</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
